import { request } from "@/utils/axiosInstance.js";


export function list(params) {
    return request({
        url: "/product/",
        params,
    });
}

export function add(data) {
    return request({
        url: "/product/add",
        method: "post",
        data,
    });
}

export function update(data) {
    return request({
        url: "/product/update",
        method: "post",
        data,
    });
}

export function del(data) {
    return request({
        url: "/product/del",
        method: "post",
        data,
    });
}

export function addProductLabel(data) {
    return request({
        url: "/product/label/add",
        method: "post",
        data,
    });
}

export function delProductLabel(data) {
    return request({
        url: "/product/label/del",
        method: "post",
        data,
    });
}
